package com.hr.reactive.flux;

import com.hr.reactive.common.AbstractHttpClient;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author Administrator
 */
public class ExternalServiceClient extends AbstractHttpClient {

    public Flux<String> getData() {
        return this.httpClient.get()
                .uri("/name/stream")
                .responseContent().asString();

    }
}

